import request from '@/utils/request'
export const getCaptcha = (data) => {
  return request({
    url: '/sys/captcha',
    method: 'post',
    data
  })
}
export const loginUser = (data) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}
export const getuserProfile = () => {
  return request({
    url: '/user/profile'
  })
}
// 注册
export const register = (data) => {
  return request({
    url: '/sys/register',
    method: 'post',
    data
  })
}
// 修改用户信息
export const putProfile = (data) => {
  return request({
    url: '/user/profile',
    method: 'put',
    data
  })
}
// 获取oss 上传凭证
export const getSts = () => {
  return request({
    url: '/user/sts'
  })
}
